<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var a2=["apple","oranage","water-melon","grape"];
			a2[5]="桃子";
			alert(a2.join("%"));
			a2.splice(2,2,"葡萄","柚子","西红柿","赖葡萄");
			alert(a2.join("#"));
			var a=3,b="3";
			alert(a==b);
			alert(a===b);
			var ch=prompt("请输入一个数:");
			switch(ch)
			{
				case 1:
				alert(1);
				break;
				case "武松":
				alert("打虎");
				break;
				case "宋江":
				alert("梁山大哥");
				break;
			}
		</script>
	</head>
	<body>
	</body>
</html>
